<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>src/vfs/smbfs/helpers/include/byteorder.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/src.html'>src</a>/<a href='../files/src--vfs.html'>vfs</a>/<a href='../files/src--vfs--smbfs.html'>smbfs</a>/<a href='../files/src--vfs--smbfs--helpers.html'>helpers</a>/<a href='../files/src--vfs--smbfs--helpers--include.html'>include</a>/byteorder.h</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/src.html'>src</a>/<a href='../files/src--vfs.html'>vfs</a>/<a href='../files/src--vfs--smbfs.html'>smbfs</a>/<a href='../files/src--vfs--smbfs--helpers.html'>helpers</a>/<a href='../files/src--vfs--smbfs--helpers--include.html'>include</a>/byteorder.h</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 src/vfs/smbfs/helpers/include/byteorder.h'  /> */</em>
<hr />
<h2 class='header'><a href='../J/byteorder.h.html' title='Multiple included from 2 places.'>INCLUDED FROM</a></h2>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='comment'>/*</em>
<a id='L2' name='L2'></a>   2 <em class='comment'>   Unix SMB/Netbios implementation.</em>
<a id='L3' name='L3'></a>   3 <em class='comment'>   Version 1.9.</em>
<a id='L4' name='L4'></a>   4 <em class='comment'>   SMB Byte handling</em>
<a id='L5' name='L5'></a>   5 <em class='comment'> */</em>
<a id='L6' name='L6'></a>   6 
<a id='L7' name='L7'></a>   7 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L8' title='Defined at 8 in src/vfs/smbfs/helpers/include/byteorder.h.'>_BYTEORDER_H</a>
<a id='L8' name='L8'></a>   8 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L7' title='Referred from 7 in src/vfs/smbfs/helpers/include/byteorder.h.'>_BYTEORDER_H</a>
<a id='L9' name='L9'></a>   9 
<a id='L10' name='L10'></a>  10 <em class='comment'>/*</em>
<a id='L11' name='L11'></a>  11 <em class='comment'>   This file implements macros for machine independent short and </em>
<a id='L12' name='L12'></a>  12 <em class='comment'>   int manipulation</em>
<a id='L13' name='L13'></a>  13 <em class='comment'></em>
<a id='L14' name='L14'></a>  14 <em class='comment'>   Here is a description of this file that I emailed to the samba list once:</em>
<a id='L15' name='L15'></a>  15 <em class='comment'></em>
<a id='L16' name='L16'></a>  16 <em class='comment'>   &gt; I am confused about the way that byteorder.h works in Samba. I have</em>
<a id='L17' name='L17'></a>  17 <em class='comment'>   &gt; looked at it, and I would have thought that you might make a distinction</em>
<a id='L18' name='L18'></a>  18 <em class='comment'>   &gt; between LE and BE machines, but you only seem to distinguish between 386</em>
<a id='L19' name='L19'></a>  19 <em class='comment'>   &gt; and all other architectures.</em>
<a id='L20' name='L20'></a>  20 <em class='comment'>   &gt; </em>
<a id='L21' name='L21'></a>  21 <em class='comment'>   &gt; Can you give me a clue?</em>
<a id='L22' name='L22'></a>  22 <em class='comment'></em>
<a id='L23' name='L23'></a>  23 <em class='comment'>   sure.</em>
<a id='L24' name='L24'></a>  24 <em class='comment'></em>
<a id='L25' name='L25'></a>  25 <em class='comment'>   The distinction between 386 and other architectures is only there as</em>
<a id='L26' name='L26'></a>  26 <em class='comment'>   an optimisation. You can take it out completely and it will make no</em>
<a id='L27' name='L27'></a>  27 <em class='comment'>   difference. The routines (macros) in byteorder.h are totally byteorder</em>
<a id='L28' name='L28'></a>  28 <em class='comment'>   independent. The 386 optimsation just takes advantage of the fact that</em>
<a id='L29' name='L29'></a>  29 <em class='comment'>   the x86 processors don't care about alignment, so we don't have to</em>
<a id='L30' name='L30'></a>  30 <em class='comment'>   align ints on int boundaries etc. If there are other processors out</em>
<a id='L31' name='L31'></a>  31 <em class='comment'>   there that aren't alignment sensitive then you could also define</em>
<a id='L32' name='L32'></a>  32 <em class='comment'>   CAREFUL_ALIGNMENT=0 on those processors as well.</em>
<a id='L33' name='L33'></a>  33 <em class='comment'></em>
<a id='L34' name='L34'></a>  34 <em class='comment'>   Ok, now to the macros themselves. I'll take a simple example, say we</em>
<a id='L35' name='L35'></a>  35 <em class='comment'>   want to extract a 2 byte integer from a SMB packet and put it into a</em>
<a id='L36' name='L36'></a>  36 <em class='comment'>   type called uint16 that is in the local machines byte order, and you</em>
<a id='L37' name='L37'></a>  37 <em class='comment'>   want to do it with only the assumption that uint16 is _at_least_ 16</em>
<a id='L38' name='L38'></a>  38 <em class='comment'>   bits long (this last condition is very important for architectures</em>
<a id='L39' name='L39'></a>  39 <em class='comment'>   that don't have any int types that are 2 bytes long)</em>
<a id='L40' name='L40'></a>  40 <em class='comment'></em>
<a id='L41' name='L41'></a>  41 <em class='comment'>   You do this:</em>
<a id='L42' name='L42'></a>  42 <em class='comment'></em>
<a id='L43' name='L43'></a>  43 <em class='comment'>   #define CVAL(buf,pos) (((unsigned char *)(buf))[pos])</em>
<a id='L44' name='L44'></a>  44 <em class='comment'>   #define PVAL(buf,pos) ((unsigned)CVAL(buf,pos))</em>
<a id='L45' name='L45'></a>  45 <em class='comment'>   #define SVAL(buf,pos) (PVAL(buf,pos)|PVAL(buf,(pos)+1)&lt;&lt;8)</em>
<a id='L46' name='L46'></a>  46 <em class='comment'></em>
<a id='L47' name='L47'></a>  47 <em class='comment'>   then to extract a uint16 value at offset 25 in a buffer you do this:</em>
<a id='L48' name='L48'></a>  48 <em class='comment'></em>
<a id='L49' name='L49'></a>  49 <em class='comment'>   char *buffer = foo_bar();</em>
<a id='L50' name='L50'></a>  50 <em class='comment'>   uint16 xx = SVAL(buffer,25);</em>
<a id='L51' name='L51'></a>  51 <em class='comment'></em>
<a id='L52' name='L52'></a>  52 <em class='comment'>   We are using the byteoder independence of the ANSI C bitshifts to do</em>
<a id='L53' name='L53'></a>  53 <em class='comment'>   the work. A good optimising compiler should turn this into efficient</em>
<a id='L54' name='L54'></a>  54 <em class='comment'>   code, especially if it happens to have the right byteorder :-)</em>
<a id='L55' name='L55'></a>  55 <em class='comment'></em>
<a id='L56' name='L56'></a>  56 <em class='comment'>   I know these macros can be made a bit tidier by removing some of the</em>
<a id='L57' name='L57'></a>  57 <em class='comment'>   casts, but you need to look at byteorder.h as a whole to see the</em>
<a id='L58' name='L58'></a>  58 <em class='comment'>   reasoning behind them. byteorder.h defines the following macros:</em>
<a id='L59' name='L59'></a>  59 <em class='comment'></em>
<a id='L60' name='L60'></a>  60 <em class='comment'>   SVAL(buf,pos) - extract a 2 byte SMB value</em>
<a id='L61' name='L61'></a>  61 <em class='comment'>   IVAL(buf,pos) - extract a 4 byte SMB value</em>
<a id='L62' name='L62'></a>  62 <em class='comment'>   SVALS(buf,pos) signed version of SVAL()</em>
<a id='L63' name='L63'></a>  63 <em class='comment'>   IVALS(buf,pos) signed version of IVAL()</em>
<a id='L64' name='L64'></a>  64 <em class='comment'></em>
<a id='L65' name='L65'></a>  65 <em class='comment'>   SSVAL(buf,pos,val) - put a 2 byte SMB value into a buffer</em>
<a id='L66' name='L66'></a>  66 <em class='comment'>   SIVAL(buf,pos,val) - put a 4 byte SMB value into a buffer</em>
<a id='L67' name='L67'></a>  67 <em class='comment'>   SSVALS(buf,pos,val) - signed version of SSVAL()</em>
<a id='L68' name='L68'></a>  68 <em class='comment'>   SIVALS(buf,pos,val) - signed version of SIVAL()</em>
<a id='L69' name='L69'></a>  69 <em class='comment'></em>
<a id='L70' name='L70'></a>  70 <em class='comment'>   RSVAL(buf,pos) - like SVAL() but for NMB byte ordering</em>
<a id='L71' name='L71'></a>  71 <em class='comment'>   RSVALS(buf,pos) - like SVALS() but for NMB byte ordering</em>
<a id='L72' name='L72'></a>  72 <em class='comment'>   RIVAL(buf,pos) - like IVAL() but for NMB byte ordering</em>
<a id='L73' name='L73'></a>  73 <em class='comment'>   RIVALS(buf,pos) - like IVALS() but for NMB byte ordering</em>
<a id='L74' name='L74'></a>  74 <em class='comment'>   RSSVAL(buf,pos,val) - like SSVAL() but for NMB ordering</em>
<a id='L75' name='L75'></a>  75 <em class='comment'>   RSIVAL(buf,pos,val) - like SIVAL() but for NMB ordering</em>
<a id='L76' name='L76'></a>  76 <em class='comment'>   RSIVALS(buf,pos,val) - like SIVALS() but for NMB ordering</em>
<a id='L77' name='L77'></a>  77 <em class='comment'></em>
<a id='L78' name='L78'></a>  78 <em class='comment'>   it also defines lots of intermediate macros, just ignore those :-)</em>
<a id='L79' name='L79'></a>  79 <em class='comment'></em>
<a id='L80' name='L80'></a>  80 <em class='comment'> */</em>
<a id='L81' name='L81'></a>  81 
<a id='L82' name='L82'></a>  82 <em class='comment'>/* some switch macros that do both store and read to and from SMB buffers */</em>
<a id='L83' name='L83'></a>  83 
<a id='L84' name='L84'></a>  84 <em class='sharp'>#define</em> RW_PCVAL(<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>,<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) \
<a id='L85' name='L85'></a>  85         <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>) <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L170' title='Defined at 170 in src/vfs/smbfs/helpers/include/byteorder.h.'>PCVAL</a> (<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,0,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <em class='brace'>}</em> \
<a id='L86' name='L86'></a>  86         <strong class='reserved'>else</strong>      <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L178' title='Defined at 178 in src/vfs/smbfs/helpers/include/byteorder.h.'>PSCVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,0,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <em class='brace'>}</em> <em class='brace'>}</em>
<a id='L87' name='L87'></a>  87 
<a id='L88' name='L88'></a>  88 <em class='sharp'>#define</em> RW_PIVAL(<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>,<a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>,<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) \
<a id='L89' name='L89'></a>  89         <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>) <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>) <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L201' title='Defined at 201 in src/vfs/smbfs/helpers/include/byteorder.h.'>RPIVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,0,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L172' title='Defined at 172 in src/vfs/smbfs/helpers/include/byteorder.h.'>PIVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,0,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <em class='brace'>}</em> <em class='brace'>}</em> \
<a id='L90' name='L90'></a>  90         <strong class='reserved'>else</strong>      <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>) <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L207' title='Defined at 207 in src/vfs/smbfs/helpers/include/byteorder.h.'>RPSIVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,0,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L180' title='Defined at 180 in src/vfs/smbfs/helpers/include/byteorder.h.'>PSIVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,0,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <em class='brace'>}</em> <em class='brace'>}</em> <em class='brace'>}</em>
<a id='L91' name='L91'></a>  91 
<a id='L92' name='L92'></a>  92 <em class='sharp'>#define</em> RW_PSVAL(<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>,<a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>,<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) \
<a id='L93' name='L93'></a>  93         <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>) <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>) <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L200' title='Defined at 200 in src/vfs/smbfs/helpers/include/byteorder.h.'>RPSVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,0,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L171' title='Defined at 171 in src/vfs/smbfs/helpers/include/byteorder.h.'>PSVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,0,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <em class='brace'>}</em> <em class='brace'>}</em> \
<a id='L94' name='L94'></a>  94         <strong class='reserved'>else</strong>      <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>) <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L206' title='Defined at 206 in src/vfs/smbfs/helpers/include/byteorder.h.'>RPSSVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,0,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L179' title='Defined at 179 in src/vfs/smbfs/helpers/include/byteorder.h.'>PSSVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,0,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <em class='brace'>}</em> <em class='brace'>}</em> <em class='brace'>}</em>
<a id='L95' name='L95'></a>  95 
<a id='L96' name='L96'></a>  96 <em class='sharp'>#define</em> RW_CVAL(<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>, <a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>, <a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>, <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>) \
<a id='L97' name='L97'></a>  97         <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>) <em class='brace'>{</em> (<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>) = <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L120' title='Defined at 120 in src/vfs/smbfs/helpers/include/byteorder.h.'>CVAL</a> (<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>); <em class='brace'>}</em> \
<a id='L98' name='L98'></a>  98         <strong class='reserved'>else</strong>      <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L122' title='Defined at 122 in src/vfs/smbfs/helpers/include/byteorder.h.'>SCVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>); <em class='brace'>}</em> <em class='brace'>}</em>
<a id='L99' name='L99'></a>  99 
<a id='L100' name='L100'></a> 100 <em class='sharp'>#define</em> RW_IVAL(<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>, <a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>, <a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>, <a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>, <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>) \
<a id='L101' name='L101'></a> 101         <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>) <em class='brace'>{</em> (<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>) = ((<a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>) ? <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L192' title='Defined at 192 in src/vfs/smbfs/helpers/include/byteorder.h.'>RIVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>) : <a href='../D/IVAL.html' title='Multiple defined in 2 places.'>IVAL</a> (<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>)); <em class='brace'>}</em> \
<a id='L102' name='L102'></a> 102         <strong class='reserved'>else</strong>      <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>) <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L196' title='Defined at 196 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSIVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>); <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em> <a href='../D/SIVAL.html' title='Multiple defined in 2 places.'>SIVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>); <em class='brace'>}</em> <em class='brace'>}</em> <em class='brace'>}</em>
<a id='L103' name='L103'></a> 103 
<a id='L104' name='L104'></a> 104 <em class='sharp'>#define</em> RW_SVAL(<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>, <a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>, <a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>, <a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>, <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>) \
<a id='L105' name='L105'></a> 105         <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/read.html' title='Multiple used in 82 places.'>read</a>) <em class='brace'>{</em> (<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>) = ((<a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>) ? <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L190' title='Defined at 190 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>) : <a href='../D/SVAL.html' title='Multiple defined in 2 places.'>SVAL</a> (<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>)); <em class='brace'>}</em> \
<a id='L106' name='L106'></a> 106         <strong class='reserved'>else</strong>      <em class='brace'>{</em> <strong class='reserved'>if</strong> (<a href='../Y/big_endian.html' title='Multiple used in 12 places.'>big_endian</a>) <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L194' title='Defined at 194 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSSVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>); <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em> <a href='../D/SSVAL.html' title='Multiple defined in 2 places.'>SSVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>); <em class='brace'>}</em> <em class='brace'>}</em> <em class='brace'>}</em>
<a id='L107' name='L107'></a> 107 
<a id='L108' name='L108'></a> 108 <em class='sharp'>#undef</em> <a href='../R/CAREFUL_ALIGNMENT.html' title='Multiple referred from 2 places.'>CAREFUL_ALIGNMENT</a>
<a id='L109' name='L109'></a> 109 
<a id='L110' name='L110'></a> 110 <em class='comment'>/* we know that the 386 can handle misalignment and has the "right" </em>
<a id='L111' name='L111'></a> 111 <em class='comment'>   byteorder */</em>
<a id='L112' name='L112'></a> 112 <em class='sharp'>#ifdef</em> __i386__
<a id='L113' name='L113'></a> 113 <em class='sharp'>#define</em> <a href='../R/CAREFUL_ALIGNMENT.html' title='Multiple referred from 2 places.'>CAREFUL_ALIGNMENT</a> 0
<a id='L114' name='L114'></a> 114 <em class='sharp'>#endif</em>
<a id='L115' name='L115'></a> 115 
<a id='L116' name='L116'></a> 116 <em class='sharp'>#ifndef</em> <a href='../D/CAREFUL_ALIGNMENT.html' title='Multiple defined in 3 places.'>CAREFUL_ALIGNMENT</a>
<a id='L117' name='L117'></a> 117 <em class='sharp'>#define</em> <a href='../R/CAREFUL_ALIGNMENT.html' title='Multiple referred from 2 places.'>CAREFUL_ALIGNMENT</a> 1
<a id='L118' name='L118'></a> 118 <em class='sharp'>#endif</em>
<a id='L119' name='L119'></a> 119 
<a id='L120' name='L120'></a> 120 <em class='sharp'>#define</em> <a href='../R/CVAL.html' title='Multiple referred from 105 places.'>CVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) (((<strong class='reserved'>unsigned</strong> <strong class='reserved'>char</strong> *)(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>))[<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>])
<a id='L121' name='L121'></a> 121 <em class='sharp'>#define</em> <a href='../R/PVAL.html' title='Multiple referred from 2 places.'>PVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) ((<strong class='reserved'>unsigned</strong>)<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L120' title='Defined at 120 in src/vfs/smbfs/helpers/include/byteorder.h.'>CVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>))
<a id='L122' name='L122'></a> 122 <em class='sharp'>#define</em> <a href='../R/SCVAL.html' title='Multiple referred from 9 places.'>SCVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) (<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L120' title='Defined at 120 in src/vfs/smbfs/helpers/include/byteorder.h.'>CVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) = (<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>))
<a id='L123' name='L123'></a> 123 
<a id='L124' name='L124'></a> 124 
<a id='L125' name='L125'></a> 125 <em class='sharp'>#if</em> <a href='../D/CAREFUL_ALIGNMENT.html' title='Multiple defined in 3 places.'>CAREFUL_ALIGNMENT</a>
<a id='L126' name='L126'></a> 126 
<a id='L127' name='L127'></a> 127 <em class='sharp'>#define</em> <a href='../R/SVAL.html' title='Multiple referred from 80 places.'>SVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) (<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L121' title='Defined at 121 in src/vfs/smbfs/helpers/include/byteorder.h.'>PVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)|<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L121' title='Defined at 121 in src/vfs/smbfs/helpers/include/byteorder.h.'>PVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,(<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)+1)&lt;&lt;8)
<a id='L128' name='L128'></a> 128 <em class='sharp'>#define</em> <a href='../R/IVAL.html' title='Multiple referred from 33 places.'>IVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) (<a href='../D/SVAL.html' title='Multiple defined in 2 places.'>SVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)|<a href='../D/SVAL.html' title='Multiple defined in 2 places.'>SVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,(<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)+2)&lt;&lt;16)
<a id='L129' name='L129'></a> 129 <em class='sharp'>#define</em> <a href='../R/SSVALX.html' title='Multiple referred from 3 places.'>SSVALX</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) (<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L120' title='Defined at 120 in src/vfs/smbfs/helpers/include/byteorder.h.'>CVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)=(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>)&amp;0xFF,<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L120' title='Defined at 120 in src/vfs/smbfs/helpers/include/byteorder.h.'>CVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>+1)=(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>)&gt;&gt;8)
<a id='L130' name='L130'></a> 130 <em class='sharp'>#define</em> <a href='../R/SIVALX.html' title='Multiple referred from 2 places.'>SIVALX</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) (<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L129' title='Defined at 129 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSVALX</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>&amp;0xFFFF),<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L129' title='Defined at 129 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSVALX</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>+2,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>&gt;&gt;16))
<a id='L131' name='L131'></a> 131 <em class='sharp'>#define</em> <a href='../R/SVALS.html' title='Multiple referred from 5 places.'>SVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) ((<a href='../D/int16.html' title='Multiple defined in 2 places.'>int16</a>)<a href='../D/SVAL.html' title='Multiple defined in 2 places.'>SVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>))
<a id='L132' name='L132'></a> 132 <em class='sharp'>#define</em> <a href='../R/IVALS.html' title='Multiple referred from 3 places.'>IVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) ((<a href='../D/int32.html' title='Multiple defined in 3 places.'>int32</a>)<a href='../D/IVAL.html' title='Multiple defined in 2 places.'>IVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>))
<a id='L133' name='L133'></a> 133 <em class='sharp'>#define</em> <a href='../R/SSVAL.html' title='Multiple referred from 131 places.'>SSVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L129' title='Defined at 129 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSVALX</a>((<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>),(<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>),((<a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a>)(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>)))
<a id='L134' name='L134'></a> 134 <em class='sharp'>#define</em> <a href='../R/SIVAL.html' title='Multiple referred from 37 places.'>SIVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L130' title='Defined at 130 in src/vfs/smbfs/helpers/include/byteorder.h.'>SIVALX</a>((<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>),(<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>),((<a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a>)(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>)))
<a id='L135' name='L135'></a> 135 <em class='sharp'>#define</em> <a href='../R/SSVALS.html' title='Multiple referred from 3 places.'>SSVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L129' title='Defined at 129 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSVALX</a>((<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>),(<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>),((<a href='../D/int16.html' title='Multiple defined in 2 places.'>int16</a>)(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>)))
<a id='L136' name='L136'></a> 136 <em class='sharp'>#define</em> <a href='../R/SIVALS.html' title='Multiple referred from 5 places.'>SIVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L130' title='Defined at 130 in src/vfs/smbfs/helpers/include/byteorder.h.'>SIVALX</a>((<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>),(<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>),((<a href='../D/int32.html' title='Multiple defined in 3 places.'>int32</a>)(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>)))
<a id='L137' name='L137'></a> 137 
<a id='L138' name='L138'></a> 138 <em class='sharp'>#else</em> <em class='comment'>/* CAREFUL_ALIGNMENT */</em>
<a id='L139' name='L139'></a> 139 
<a id='L140' name='L140'></a> 140 <em class='comment'>/* this handles things for architectures like the 386 that can handle</em>
<a id='L141' name='L141'></a> 141 <em class='comment'>   alignment errors */</em>
<a id='L142' name='L142'></a> 142 <em class='comment'>/*</em>
<a id='L143' name='L143'></a> 143 <em class='comment'>   WARNING: This section is dependent on the length of int16 and int32</em>
<a id='L144' name='L144'></a> 144 <em class='comment'>   being correct </em>
<a id='L145' name='L145'></a> 145 <em class='comment'> */</em>
<a id='L146' name='L146'></a> 146 
<a id='L147' name='L147'></a> 147 <em class='comment'>/* get single value from an SMB buffer */</em>
<a id='L148' name='L148'></a> 148 <em class='sharp'>#define</em> <a href='../R/SVAL.html' title='Multiple referred from 80 places.'>SVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) (*(<a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> *)((<strong class='reserved'>char</strong> *)(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>) + (<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)))
<a id='L149' name='L149'></a> 149 <em class='sharp'>#define</em> <a href='../R/IVAL.html' title='Multiple referred from 33 places.'>IVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) (*(<a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> *)((<strong class='reserved'>char</strong> *)(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>) + (<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)))
<a id='L150' name='L150'></a> 150 <em class='sharp'>#define</em> <a href='../R/SVALS.html' title='Multiple referred from 5 places.'>SVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) (*(<a href='../D/int16.html' title='Multiple defined in 2 places.'>int16</a> *)((<strong class='reserved'>char</strong> *)(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>) + (<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)))
<a id='L151' name='L151'></a> 151 <em class='sharp'>#define</em> <a href='../R/IVALS.html' title='Multiple referred from 3 places.'>IVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) (*(<a href='../D/int32.html' title='Multiple defined in 3 places.'>int32</a> *)((<strong class='reserved'>char</strong> *)(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>) + (<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)))
<a id='L152' name='L152'></a> 152 
<a id='L153' name='L153'></a> 153 <em class='comment'>/* store single value in an SMB buffer */</em>
<a id='L154' name='L154'></a> 154 <em class='sharp'>#define</em> <a href='../R/SSVAL.html' title='Multiple referred from 131 places.'>SSVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../D/SVAL.html' title='Multiple defined in 2 places.'>SVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)=((<a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a>)(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>))
<a id='L155' name='L155'></a> 155 <em class='sharp'>#define</em> <a href='../R/SIVAL.html' title='Multiple referred from 37 places.'>SIVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../D/IVAL.html' title='Multiple defined in 2 places.'>IVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)=((<a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a>)(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>))
<a id='L156' name='L156'></a> 156 <em class='sharp'>#define</em> <a href='../R/SSVALS.html' title='Multiple referred from 3 places.'>SSVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../D/SVALS.html' title='Multiple defined in 2 places.'>SVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)=((<a href='../D/int16.html' title='Multiple defined in 2 places.'>int16</a>)(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>))
<a id='L157' name='L157'></a> 157 <em class='sharp'>#define</em> <a href='../R/SIVALS.html' title='Multiple referred from 5 places.'>SIVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../D/IVALS.html' title='Multiple defined in 2 places.'>IVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>)=((<a href='../D/int32.html' title='Multiple defined in 3 places.'>int32</a>)(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>))
<a id='L158' name='L158'></a> 158 
<a id='L159' name='L159'></a> 159 <em class='sharp'>#endif</em> <em class='comment'>/* CAREFUL_ALIGNMENT */</em>
<a id='L160' name='L160'></a> 160 
<a id='L161' name='L161'></a> 161 <em class='comment'>/* macros for reading / writing arrays */</em>
<a id='L162' name='L162'></a> 162 
<a id='L163' name='L163'></a> 163 <em class='sharp'>#define</em> <a href='../R/SMBMACRO.html' title='Multiple referred from 10 places.'>SMBMACRO</a>(<a href='../Y/macro.html' title='Multiple used in 21 places.'>macro</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,<a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>) \
<a id='L164' name='L164'></a> 164 <em class='brace'>{</em> <strong class='reserved'>int</strong> <a href='../Y/l.html' title='Multiple used in 439 places.'>l</a>; <strong class='reserved'>for</strong> (<a href='../Y/l.html' title='Multiple used in 439 places.'>l</a> = 0; <a href='../Y/l.html' title='Multiple used in 439 places.'>l</a> &lt; (<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <a href='../Y/l.html' title='Multiple used in 439 places.'>l</a>++) (<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>)[<a href='../Y/l.html' title='Multiple used in 439 places.'>l</a>] = <a href='../Y/macro.html' title='Multiple used in 21 places.'>macro</a>((<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>), (<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) + (<a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>)*<a href='../Y/l.html' title='Multiple used in 439 places.'>l</a>); <em class='brace'>}</em>
<a id='L165' name='L165'></a> 165 
<a id='L166' name='L166'></a> 166 <em class='sharp'>#define</em> <a href='../R/SSMBMACRO.html' title='Multiple referred from 10 places.'>SSMBMACRO</a>(<a href='../Y/macro.html' title='Multiple used in 21 places.'>macro</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,<a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>) \
<a id='L167' name='L167'></a> 167 <em class='brace'>{</em> <strong class='reserved'>int</strong> <a href='../Y/l.html' title='Multiple used in 439 places.'>l</a>; <strong class='reserved'>for</strong> (<a href='../Y/l.html' title='Multiple used in 439 places.'>l</a> = 0; <a href='../Y/l.html' title='Multiple used in 439 places.'>l</a> &lt; (<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>); <a href='../Y/l.html' title='Multiple used in 439 places.'>l</a>++) <a href='../Y/macro.html' title='Multiple used in 21 places.'>macro</a>((<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>), (<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) + (<a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>)*<a href='../Y/l.html' title='Multiple used in 439 places.'>l</a>, (<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>)[<a href='../Y/l.html' title='Multiple used in 439 places.'>l</a>]); <em class='brace'>}</em>
<a id='L168' name='L168'></a> 168 
<a id='L169' name='L169'></a> 169 <em class='comment'>/* reads multiple data from an SMB buffer */</em>
<a id='L170' name='L170'></a> 170 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L85' title='Referred from 85 in src/vfs/smbfs/helpers/include/byteorder.h.'>PCVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L163' title='Defined at 163 in src/vfs/smbfs/helpers/include/byteorder.h.'>SMBMACRO</a>(<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L120' title='Defined at 120 in src/vfs/smbfs/helpers/include/byteorder.h.'>CVAL</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,1)
<a id='L171' name='L171'></a> 171 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L93' title='Referred from 93 in src/vfs/smbfs/helpers/include/byteorder.h.'>PSVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L163' title='Defined at 163 in src/vfs/smbfs/helpers/include/byteorder.h.'>SMBMACRO</a>(<a href='../D/SVAL.html' title='Multiple defined in 2 places.'>SVAL</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,2)
<a id='L172' name='L172'></a> 172 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L89' title='Referred from 89 in src/vfs/smbfs/helpers/include/byteorder.h.'>PIVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L163' title='Defined at 163 in src/vfs/smbfs/helpers/include/byteorder.h.'>SMBMACRO</a>(<a href='../D/IVAL.html' title='Multiple defined in 2 places.'>IVAL</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,4)
<a id='L173' name='L173'></a> 173 <em class='sharp'>#define</em> PCVALS(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L163' title='Defined at 163 in src/vfs/smbfs/helpers/include/byteorder.h.'>SMBMACRO</a>(CVALS,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,1)
<a id='L174' name='L174'></a> 174 <em class='sharp'>#define</em> PSVALS(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L163' title='Defined at 163 in src/vfs/smbfs/helpers/include/byteorder.h.'>SMBMACRO</a>(<a href='../D/SVALS.html' title='Multiple defined in 2 places.'>SVALS</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,2)
<a id='L175' name='L175'></a> 175 <em class='sharp'>#define</em> PIVALS(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L163' title='Defined at 163 in src/vfs/smbfs/helpers/include/byteorder.h.'>SMBMACRO</a>(<a href='../D/IVALS.html' title='Multiple defined in 2 places.'>IVALS</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,4)
<a id='L176' name='L176'></a> 176 
<a id='L177' name='L177'></a> 177 <em class='comment'>/* stores multiple data in an SMB buffer */</em>
<a id='L178' name='L178'></a> 178 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L86' title='Referred from 86 in src/vfs/smbfs/helpers/include/byteorder.h.'>PSCVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L166' title='Defined at 166 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSMBMACRO</a>(<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L122' title='Defined at 122 in src/vfs/smbfs/helpers/include/byteorder.h.'>SCVAL</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,1)
<a id='L179' name='L179'></a> 179 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L94' title='Referred from 94 in src/vfs/smbfs/helpers/include/byteorder.h.'>PSSVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L166' title='Defined at 166 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSMBMACRO</a>(<a href='../D/SSVAL.html' title='Multiple defined in 2 places.'>SSVAL</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,2)
<a id='L180' name='L180'></a> 180 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L90' title='Referred from 90 in src/vfs/smbfs/helpers/include/byteorder.h.'>PSIVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L166' title='Defined at 166 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSMBMACRO</a>(<a href='../D/SIVAL.html' title='Multiple defined in 2 places.'>SIVAL</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,4)
<a id='L181' name='L181'></a> 181 <em class='sharp'>#define</em> PSCVALS(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L166' title='Defined at 166 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSMBMACRO</a>(SCVALS,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,1)
<a id='L182' name='L182'></a> 182 <em class='sharp'>#define</em> PSSVALS(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L166' title='Defined at 166 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSMBMACRO</a>(<a href='../D/SSVALS.html' title='Multiple defined in 2 places.'>SSVALS</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,2)
<a id='L183' name='L183'></a> 183 <em class='sharp'>#define</em> PSIVALS(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L166' title='Defined at 166 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSMBMACRO</a>(<a href='../D/SIVALS.html' title='Multiple defined in 2 places.'>SIVALS</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,4)
<a id='L184' name='L184'></a> 184 
<a id='L185' name='L185'></a> 185 
<a id='L186' name='L186'></a> 186 <em class='comment'>/* now the reverse routines - these are used in nmb packets (mostly) */</em>
<a id='L187' name='L187'></a> 187 <em class='sharp'>#define</em> <a href='../R/SREV.html' title='Multiple referred from 5 places.'>SREV</a>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>)&amp;0xFF)&lt;&lt;8) | (((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>)&gt;&gt;8)&amp;0xFF))
<a id='L188' name='L188'></a> 188 <em class='sharp'>#define</em> <a href='../R/IREV.html' title='Multiple referred from 4 places.'>IREV</a>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L187' title='Defined at 187 in src/vfs/smbfs/helpers/include/byteorder.h.'>SREV</a>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>)&lt;&lt;16) | (<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L187' title='Defined at 187 in src/vfs/smbfs/helpers/include/byteorder.h.'>SREV</a>((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>)&gt;&gt;16)))
<a id='L189' name='L189'></a> 189 
<a id='L190' name='L190'></a> 190 <em class='sharp'>#define</em> <a href='../R/RSVAL.html' title='Multiple referred from 17 places.'>RSVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L187' title='Defined at 187 in src/vfs/smbfs/helpers/include/byteorder.h.'>SREV</a>(<a href='../D/SVAL.html' title='Multiple defined in 2 places.'>SVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>))
<a id='L191' name='L191'></a> 191 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L202' title='Referred from 202 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L187' title='Defined at 187 in src/vfs/smbfs/helpers/include/byteorder.h.'>SREV</a>(<a href='../D/SVALS.html' title='Multiple defined in 2 places.'>SVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>))
<a id='L192' name='L192'></a> 192 <em class='sharp'>#define</em> <a href='../R/RIVAL.html' title='Multiple referred from 3 places.'>RIVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L188' title='Defined at 188 in src/vfs/smbfs/helpers/include/byteorder.h.'>IREV</a>(<a href='../D/IVAL.html' title='Multiple defined in 2 places.'>IVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>))
<a id='L193' name='L193'></a> 193 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L203' title='Referred from 203 in src/vfs/smbfs/helpers/include/byteorder.h.'>RIVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L188' title='Defined at 188 in src/vfs/smbfs/helpers/include/byteorder.h.'>IREV</a>(<a href='../D/IVALS.html' title='Multiple defined in 2 places.'>IVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>))
<a id='L194' name='L194'></a> 194 <em class='sharp'>#define</em> <a href='../R/RSSVAL.html' title='Multiple referred from 19 places.'>RSSVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../D/SSVAL.html' title='Multiple defined in 2 places.'>SSVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L187' title='Defined at 187 in src/vfs/smbfs/helpers/include/byteorder.h.'>SREV</a>(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>))
<a id='L195' name='L195'></a> 195 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L208' title='Referred from 208 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSSVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../D/SSVALS.html' title='Multiple defined in 2 places.'>SSVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L187' title='Defined at 187 in src/vfs/smbfs/helpers/include/byteorder.h.'>SREV</a>(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>))
<a id='L196' name='L196'></a> 196 <em class='sharp'>#define</em> <a href='../R/RSIVAL.html' title='Multiple referred from 4 places.'>RSIVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../D/SIVAL.html' title='Multiple defined in 2 places.'>SIVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L188' title='Defined at 188 in src/vfs/smbfs/helpers/include/byteorder.h.'>IREV</a>(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>))
<a id='L197' name='L197'></a> 197 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L209' title='Referred from 209 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSIVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>) <a href='../D/SIVALS.html' title='Multiple defined in 2 places.'>SIVALS</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L188' title='Defined at 188 in src/vfs/smbfs/helpers/include/byteorder.h.'>IREV</a>(<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>))
<a id='L198' name='L198'></a> 198 
<a id='L199' name='L199'></a> 199 <em class='comment'>/* reads multiple data from an SMB buffer (big-endian) */</em>
<a id='L200' name='L200'></a> 200 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L93' title='Referred from 93 in src/vfs/smbfs/helpers/include/byteorder.h.'>RPSVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L163' title='Defined at 163 in src/vfs/smbfs/helpers/include/byteorder.h.'>SMBMACRO</a>(<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L190' title='Defined at 190 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSVAL</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,2)
<a id='L201' name='L201'></a> 201 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L89' title='Referred from 89 in src/vfs/smbfs/helpers/include/byteorder.h.'>RPIVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L163' title='Defined at 163 in src/vfs/smbfs/helpers/include/byteorder.h.'>SMBMACRO</a>(<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L192' title='Defined at 192 in src/vfs/smbfs/helpers/include/byteorder.h.'>RIVAL</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,4)
<a id='L202' name='L202'></a> 202 <em class='sharp'>#define</em> RPSVALS(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L163' title='Defined at 163 in src/vfs/smbfs/helpers/include/byteorder.h.'>SMBMACRO</a>(<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L191' title='Defined at 191 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSVALS</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,2)
<a id='L203' name='L203'></a> 203 <em class='sharp'>#define</em> RPIVALS(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L163' title='Defined at 163 in src/vfs/smbfs/helpers/include/byteorder.h.'>SMBMACRO</a>(<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L193' title='Defined at 193 in src/vfs/smbfs/helpers/include/byteorder.h.'>RIVALS</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,4)
<a id='L204' name='L204'></a> 204 
<a id='L205' name='L205'></a> 205 <em class='comment'>/* stores multiple data in an SMB buffer (big-endian) */</em>
<a id='L206' name='L206'></a> 206 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L94' title='Referred from 94 in src/vfs/smbfs/helpers/include/byteorder.h.'>RPSSVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L166' title='Defined at 166 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSMBMACRO</a>(<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L194' title='Defined at 194 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSSVAL</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,2)
<a id='L207' name='L207'></a> 207 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L90' title='Referred from 90 in src/vfs/smbfs/helpers/include/byteorder.h.'>RPSIVAL</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L166' title='Defined at 166 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSMBMACRO</a>(<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L196' title='Defined at 196 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSIVAL</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,4)
<a id='L208' name='L208'></a> 208 <em class='sharp'>#define</em> RPSSVALS(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L166' title='Defined at 166 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSMBMACRO</a>(<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L195' title='Defined at 195 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSSVALS</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,2)
<a id='L209' name='L209'></a> 209 <em class='sharp'>#define</em> RPSIVALS(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>) <a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L166' title='Defined at 166 in src/vfs/smbfs/helpers/include/byteorder.h.'>SSMBMACRO</a>(<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L197' title='Defined at 197 in src/vfs/smbfs/helpers/include/byteorder.h.'>RSIVALS</a>,<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>,<a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>,<a href='../Y/val.html' title='Multiple used in 105 places.'>val</a>,<a href='../Y/len.html' title='Multiple used in 1086 places.'>len</a>,4)
<a id='L210' name='L210'></a> 210 
<a id='L211' name='L211'></a> 211 <em class='sharp'>#endif</em> <em class='comment'>/* _BYTEORDER_H */</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+211 src/vfs/smbfs/helpers/include/byteorder.h'  /> */</em>
</body>
</html>
